package com.learning.rpc.registry;

import java.net.URI;

/**
 * ClassName: RegistryService
 * Description: 注册服务
 * Date: 2022/5/10 23:01 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public interface RegistryService {
    /**
     * 注册
     *
     * @param uri uri
     */
    void register(URI uri);

    /**
     * 订阅指定服务
     *
     * @param service        service
     * @param notifyListener notifyListener
     */
    void subscribe(String service, NotifyListener notifyListener);

    /**
     * 配置连接信息
     *
     * @param address address
     */
    void init(URI address);
}
